//===-- SBDeclaration.h -------------------------------------------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#ifndef LLDB_SBDeclaration_h_
#define LLDB_SBDeclaration_h_

#include <LLDB/SBDefines.h>
#include <LLDB/SBFileSpec.h>

namespace lldb {
    
    class LLDB_API SBDeclaration
    {
    public:
        
        SBDeclaration ();
        
        SBDeclaration (const lldb::SBDeclaration &rhs);
        
        ~SBDeclaration ();
        
        const lldb::SBDeclaration &
        operator = (const lldb::SBDeclaration &rhs);
        
        bool
        IsValid () const;
        
        lldb::SBFileSpec
        GetFileSpec () const;
        
        uint32_t
        GetLine () const;
        
        uint32_t
        GetColumn () const;
        
        void
        SetFileSpec (lldb::SBFileSpec filespec);
        
        void
        SetLine (uint32_t line);
        
        void
        SetColumn (uint32_t column);
        
        bool
        operator == (const lldb::SBDeclaration &rhs) const;
        
        bool
        operator != (const lldb::SBDeclaration &rhs) const;
        
        bool
        GetDescription (lldb::SBStream &description);
        
    protected:
        
        lldb_private::Declaration *
        get ();
        
    private:
        friend class SBValue;
        
        const lldb_private::Declaration *
        operator->() const;
        
        lldb_private::Declaration &
        ref();
        
        const lldb_private::Declaration &
        ref() const;
        
        SBDeclaration (const lldb_private::Declaration *lldb_object_ptr);
        
        void
        SetDeclaration (const lldb_private::Declaration &lldb_object_ref);
        
        std::unique_ptr<lldb_private::Declaration> m_opaque_ap;
    };
    
    
} // namespace lldb

#endif // LLDB_SBDeclaration_h_
